﻿using Baula.TextGen.Framework.ComInterop;

namespace Baula.TextGen.Framework.Sections
{
    public class UsageOfImplicitNameForPlaceholderSectionException : TextGenException
    {
        private readonly string _implicitPlaceholderSectionName;

        public UsageOfImplicitNameForPlaceholderSectionException(string implicitPlaceholderSectionName)
            : base("Cannot use \"" + implicitPlaceholderSectionName + "\" as name for a PlaceholderSection because a PlaceholderSection with this name is provided implicitely.", ErrorCodes.UsageOfImplicitNameForPlaceholderSection)
        {
            _implicitPlaceholderSectionName = implicitPlaceholderSectionName;
        }

        public string ImplicitPlaceholderSectionName
        {
            get { return _implicitPlaceholderSectionName; }
        }
    }
}